<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta content="IE=edge" http-equiv="X-UA-Compatible">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
          name="viewport">
    <title>登录博客后台</title>

    <meta content="no-siteapp" http-equiv="Cache-Control"/>
    <link rel="shortcut icon" th:href="@{/user/img/bloglogo.jpg}"/>

    <script th:src="@{/assets/js/jquery.min.js}"></script>
    <script th:src="@{/assets/js/amazeui.min.js}"></script>
    <link rel="stylesheet" th:href="@{/assets/css/amazeui.min.css}"/>
    <link rel="stylesheet" th:href="@{/assets/css/app.css}"/>
</head>

<body>

<div class="log">
    <div class="am-g">
        <div class="am-u-lg-3 am-u-md-6 am-u-sm-8 am-u-sm-centered log-content">
            <h1 class="log-title am-animation-slide-top" style="color: black;" th:text="#{login.welcomeTitle}">
                ~欢迎登录博客~</h1>
            <br>
            <div style="color: red" th:if="${param.error}" th:text="#{login.error}">用户名或密码错误!</div>
            <form class="am-form" id="loginForm" method="post" th:action="@{/login}">
                <div>
                    <input name="url" th:value="${url}" type="hidden">
                </div>
                <div class="am-input-group am-radius am-animation-slide-left">
                    <input class="am-radius" name="username" th:placeholder="#{login.username}" type="text"/>
                    <span class="am-input-group-label log-icon am-radius">
                        <i class="am-icon-user am-icon-sm am-icon-fw"></i>
                    </span>
                </div>
                <br>
                <div class="am-input-group am-animation-slide-left log-animation-delay">
                    <input class="am-form-field am-radius log-input" name="password" th:placeholder="#{login.password}"
                           type="password"/>
                    <span class="am-input-group-label log-icon am-radius">
                        <i class="am-icon-lock am-icon-sm am-icon-fw"></i>
                    </span>
                </div>
                <div style="padding-top: 10px;">
                    <input class="am-btn am-btn-primary am-btn-block am-btn-lg am-radius am-animation-slide-bottom log-animation-delay" th:value="#{login.sub}"
                           type="submit"/>
                </div>
            </form>
        </div>
    </div>

    <footer class="log-footer">
        <p style="margin: 30px; color: #2E2D3C">
            <time class="comment-time" th:text="${#dates.format(new java.util.Date().getTime(), 'yyyy')}"></time> &copy;
            Powered By <a rel="nofollow" style="color: #0e90d2">WuZhuoFan</a></p>
    </footer>
</div>
</body>
</html>